﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using tour.szhome.common;
using TOUR.SZHOME.BLL;

namespace tour.szhome.www.Controllers
{
    public class IndexController : Controller
    {
        //
        // GET: /Home/
        AdvBLL _advbll = new AdvBLL();
        ActivitiesBLL _actbll = new ActivitiesBLL();
        StrategyBLL _strbll = new StrategyBLL();
        AlbumBLL _abbll = new AlbumBLL();
        ProjectsBLL _pbll = new ProjectsBLL();

        public ActionResult Index()
        {
            PageSet pageSet = new PageSet(){PageIndex = 1,PageSize = 10,};
            ViewBag.uploadAddress = System.Configuration.ConfigurationManager.AppSettings["UploadAddress"];//获取上传文件地址 
            ViewBag.Folder = "others/";   //获取当前子文件夹

            ViewBag.SlideList = _advbll.GetList(pageSet);
            ViewBag.ActList = _actbll.GetList(pageSet);
            ViewBag.StrList = _strbll.GetList(pageSet);
            ViewBag.AlbList = _abbll.GetList(pageSet);

            ViewBag.PList = _pbll.GetToWebIndex(1,"").ToList();
            return View();
        }

    }
}
